import request from '@/utils/request.js'
const PATH = '/user'

// 分页查询课程图书列表
export const getCourseBookList = ({ page, pageSize, bookName, categoryId }) => {
  return request.get(PATH + '/courseBook/pageQueryCourseBook', {
    params: {
      page,
      pageSize,
      bookName,
      categoryId
    }
  })
}

// 根据id查询课程图书
export const getCourseBookById = (id) =>
  request.get(PATH + '/courseBook/getCourseBookById', { params: { id } })
